﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using GH.BLL;

public partial class VipFamilyList : GH.Web.BasePage.PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.hdVipID.Value = this.Request.QueryString["Id"].ToString();
            this.lblMemberName.Text = this.Request.QueryString["Name"].ToString();
            //婚姻状况
            Common.SetDataBound(ddlMarrid, "111");
        }
        SetDataInit();
    }

    private void SetDataInit()
    {
        System.Text.StringBuilder strWhere = new System.Text.StringBuilder();
        strWhere.AppendFormat(" 序号={0}", this.hdVipID.Value.ToString());
        VipMemberFamily bllVipMemberFamily = new VipMemberFamily();
        DataTable dtQuery = bllVipMemberFamily.GetList(strWhere.ToString()).Tables[0];
        rptList.DataSource = dtQuery;
        rptList.DataBind();
    }

    public string FormatMarrid(string strVale)
    {
        string strReturn=string.Empty;
        switch (strVale)
        { 
            case "1":
                strReturn="未婚";
                break;
            case "2":
                strReturn="已婚";
                break;
            case "3":
                strReturn="离异";
                break;
            case "4":
                strReturn="丧偶";
                break;
        }
        return strReturn;
    }


}
